<template>
  <div>
    <pace-header></pace-header>
    <pace-list></pace-list>
  </div>
</template>

<script>
import Cookies from 'js-cookie'
import PaceHeader from './components/header'
import PaceList from './components/list'
export default {
  name: 'index',
  data () {
    return {
      projectList: [],
      tag: this.Run
    }
  },
  components: {
    PaceHeader,
    PaceList
  },
  methods: {
    judge () {
      if (!Cookies.get('id')) {
        this.$router.push('/loginError')
      }
    }
  },
  created () {
    this.judge()
  }
}
</script>

<style lang="stylus" scoped>
  .right
    float: right
  .iconMargin
    margin-right .5rem
  .textColor
    color #0D0D0D
  .iconColor
    color #88d4ff
  .paceMargin
    margin-left .2rem

  .taskIcon
    color #16b0ff
  .row
    margin-top .6rem
    margin-left .5rem
    margin-bottom .6rem
  .delIcon
    float right
    margin-right .5rem
  .fuzerenIcon
    margin-right .3rem
  .projectIcon
    margin-right .35rem
  .divider
    margin-top .5rem
</style>
